package com.example.lotterysystem.controller.param;

import lombok.Data;
import lombok.Getter;

import java.io.Serializable;

@Data
public class PageParam implements Serializable {

    /**
     * 当前页码
     */
    private Integer currentPage=1;
    /**
     * 每页显示条数
     */
    private Integer pageSize=10;

    public Integer offset(){
        return (currentPage - 1) * pageSize;
    }

}
